<template>
  <div style="
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;">
    <el-table
        :data="tableData"
        border
        style="width: 100%">
      <el-table-column
          label="学号"
          width=""
          align="center">
        <template slot-scope="scope">
          {{ scope.row.num }}
        </template>
      </el-table-column>
      <el-table-column
          label="姓名"
          width=""
          align="center">
        <template slot-scope="scope">
          {{ scope.row.name }}
        </template>
      </el-table-column>
      <el-table-column
          label="科目"
          width=""
          align="center">
        <template slot-scope="scope">
          {{ scope.row.course }}
        </template>
      </el-table-column>
      <el-table-column
          label="任课老师"
          width=""
          align="center">
        <template slot-scope="scope">
          {{ scope.row.teacher }}
        </template>
      </el-table-column>
      <el-table-column
          label="提交时间"
          width=""
          align="center">
        <template slot-scope="scope">
          {{ scope.row.timestamp }}
        </template>
      </el-table-column>
      <el-table-column
          label="提交情况"
          width=""
          align="center">
        <template slot-scope="scope">
          {{ scope.row.status }}
        </template>
      </el-table-column>
      <el-table-column
          label="得分"
          width=""
          align="center">
        <template slot-scope="scope">
          {{ scope.row.mark }}
        </template>
      </el-table-column>
      <el-table-column
          label="操作"
          align="center">
        <template slot-scope="scope">
          <el-button
              size="mini"
              type="primary"
              @click="handleEdit(scope.$index, scope.row)">查看
          </el-button>
        </template>
      </el-table-column>
    </el-table>

    <el-dialog title="查看详细情况" :visible.sync="dialogFormVisible">
      <span>暂定</span>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="handleUpdateStudent()">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
name: "Result",
  data() {
    return {
      formLabelWidth: '',
      dialogFormVisible: false,
      tableData: [{
          id:1
      }],
    }
  },

  methods:{
    handleEdit(index, row) {
      this.formLabelWidth = index;
      this.formLabelWidth= row.id
      this.dialogFormVisible = true;
    },
  }
}
</script>

<style scoped>

</style>